extends "../luyijiushi-3/luyijiushi-3.gd"


var baseId = ""
var upText1 = "连续射击触发几率+5%"
var upText2 = "延迟引信伤害提高50%"
func _extInit():
	._extInit()
	lv = 4             #等级的设置
	addSkill("对敌人造成非特效伤害时，若目标身上的<烧蚀>超过10层，引爆全部层数，造成[烧蚀层数*炮击*0.5]的技能伤害(内置冷却1秒)", "连锁爆炸")
var skFlag4 = true
func _onAtkChara(atkInfo):
	._onAtkChara(atkInfo)
	if atkInfo.atkType != sys.AtkType.EFF:
		var bf = atkInfo.hitCha.hasBuff("b_shaoShi")
		if bf == null:return
		if bf.life > 10 and skFlag4:
			skFlag4 = false
			for i in getCellChas(atkInfo.hitCha.cell, 1, 1):
				azurHurtChara(i, bf.life * att.atk * 0.5, sys.HurtType.WEAPON, sys.AtkType.SKILL, "连锁爆炸")
		bf.isDel = true		

func _upS():
	._upS()		
	skFlag4 = true

func upgrade():
	.upgrade()
	if upgraded == 1:
		p2 = 35